package cn.mcch.investigator.dialog;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cn.mcch.investigator.R;
import cn.mcch.investigator.application.InvestigatorApplication;

/**
 * Created by Administrator on 2016/12/17.
 */
public class LoadingDialog extends BaseDialog {

    private String msg;

    @Override
    protected void initEventListener() {

    }

    @Override
    protected View initView(LayoutInflater inflater, ViewGroup container) {
        setCancelable(false);
        return View.inflate(InvestigatorApplication.getInstance(), R.layout.dialog_loading, null);
    }

    @Override
    public void initData() {
        setText(R.id.tv_loading, msg);
    }

    public BaseDialog setMessage(String msg) {
        this.msg = msg;
        return this;
    }

}
